Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Allow host-header-allowlist to be set in configuration file #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jpreese
Copy link
Member

@jpreese jpreese commented May 1, 2023

This PR enables users to be able to define the host-header-allowlist in the configuration file. At the moment, if you attempt to set these values in the configuration file, they are not propagated to the variables used in the middleware due to how viper's marshaling works.

I would also propose that we remove the enable-host-header-allowlist flag from the configuration entirely as we can infer that this is what the user wants to do if host-header-allowlist configured. It can be a little confusing to define the list, but not have it actually take effect.

@jpreese jpreese requested a review from aveenismail May 1, 2023 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant